import tkinter as tk
# def get_input():
#     input_text = entry.get()
#     input2_text = entry2.get()
#     print(f"Input:{input_text},input2_text{input2_text}" )
import datetime
import time
from decimal import Decimal, ROUND_HALF_UP
import re
def strToInt(strNum):
    # Remove double quotes if present
    strNum = strNum.strip('"')
    return strNum
if __name__ == '__main__':
    text = "13-1"
    result = re.sub(r'\-\d{1,}', 'N', text)
    print(result)  # 输出：131
    # print("13-1".replace('-',''))

    text ="3N2"
    print(type(text[0:1]))
    print(text[-1])